<html>

<head>
<title>SQL Relay - Getting Started With Oracle</title>
<link rel="stylesheet" href="../../../../../css/styles.css">
</head>

<body>

<span class="heading1">Pretend to be Red Hat Enterprise Linux ES Release
3</span><br>

<p>Oracle 10g is only officially supported on a few versions of Redhat Linux
and UnitedLinux.  The installer checks /etc/redhat-release to see exactly what
version of Redhat Linux you are running.  To pretend that you are running Red
Hat Enterprise Linux ES Release 3, run the following commands (as root):<p>

<blockquote>
<b>mv /etc/redhat-release /etc/redhat-release.old<br>
echo "Red Hat Enterprise Linux ES release 3 (Taroon Update 1)" &gt; /etc/redhat-release</b>
</blockquote>

<span class="heading1">Configure the Kernel</span><br>

<p>Oracle 10g requires that you at least temporarily increase the values of
a couple of kernel parameters.  To temporarily increase these values, follow
these instructions (as root):</p>

<blockquote>
<b>echo 65536 &gt; /proc/sys/fs/file-max<br>
echo 2147483648 &gt; /proc/sys/kernel/shmmax<br>
echo "250 32000 100 128" &gt; /proc/sys/kernel/sem</b>
</blockquote>

<span class="heading1">Install Oracle</span><br>

<p>Now, log in as the oracle user.</p>

<p>Since Oracle 10.1.0 uses a graphical installer, you need to be running X
Windows or point the DISPLAY environment variable to an X Windows session
running somewhere.</p>

<p>I have had problems with the graphical installer on enlightenment and
fluxbox window managers in the past, though they may work for you.</p>

<p>If you have a CD, mount it and cd to the mount point.  If you have a cpio
distribution, extract the file using:<p>

<blockquote><b>
gunzip ship.db.cpio<br>
cpio -idmv &lt; ship.db.cpio<br>
</b></blockquote>

Change directories to the Disk1 directory.<br><br>

Type <b>./runInstaller</b><br><br>

On the <b>Welcome</b> screen click <b>Next</b><br><br>

On the <b>Specify Inventory directory and credentials</b> screen,
accept the defaults and click <b>OK</b><br><br>

A dialog will pop up and prompt you to run
/u01/app/oracle/oraInventory/orainstRoot.sh as root.<br>
Follow the instructions and click <b>Continue</b><br><br>

On the <b>Specify File Locations</b> screen, accept the defaults and
click <b>Next</b><br><br>

On the <b>Select Installation Type</b> screen, accept the default selection 
<b>Enterprise Edition</b> and click <b>Next</b><br><br>

The installer will run a series of checks, if you configured the kernel
properly before beginning the install, all should succeed.<br><br>

On the <b>Select Database Configuration</b> screen, accept the default
selections <b>Create a starter database</b> and <b>General Purpose</b> and
click <b>Next</b><br><br>

On the <b>Specify Database Configuration Options</b> screen, accept the
defaults and click <b>Next</b><br><br>

On the <b>Specify Database Management Option</b> screen, accept the
defaults and click <b>Next</b><br><br>

On the <b>Specify Database File Storage Option</b> screen, accept the
defaults and click <b>Next</b><br><br>

On the <b>Specify Backup and Recovery Options</b> screen, accept the
defaults and click <b>Next</b><br><br>

On the <b>Specify Database Schema Passwords</b> screen, enter and confirm
passwords for the <b>SYS, SYSTEM, SYSMAN</b> and <b>DBSNMP</b> users.  Note
that you cannot use the classic "manager" and "change_on_install" passwords.
Then click <b>Next</b><br><br>

On the <b>Summary</b> screen, click <b>Install</b><br><br>

The <b>Install</b> screen will show the progress of the installation<br><br>

When installation is finished, the <b>Configuration Assistants</b> screen will
show the progress of the initial configuration processes.<br><br>

A <b>Database Configuration Assistant</b> dialog should pop up, displaying the
progress of the initial database configuration.  This is likely to fail.  If
it does, execute these command in another terminal window:

<blockquote>
cd $ORACLE_HOME/bin<br>
mv oracle oracle.bin<br>
cat &gt; oracle &lt;&lt;"EOF"<br>
#!/bin/bash<br>
 <br>
export DISABLE_HUGETLBFS=1<br>
exec $ORACLE_HOME/bin/oracle.bin $@<br>
EOF<br>
chmod +x oracle<br>
</blockquote>

Then click Retry.  During the <b>Completing Database Creation</b> phase, two
dialogs may pop up with the following error: ORA-00988: missing or invalid
password(s).  These <i>appear</i> to be harmless.  For each, just click
<b>OK</b>.<br><br>

When database creation is complete, a dialog will pop up with a summary.  Click
<b>OK</b>.

<p>A dialog will pop up asking you to run root.sh.  Just follow the directions
on the dialog (they may take a while to complete) and click <b>Ok</b><br><br>

On the <b>End Of Installation</b> screen click <b>Exit</b><br><br>

A dialog will pop up asking: Do you really want to exit?
Click <b>Yes</b>.<br><br>

<span class="heading1">Post-Installation</span><br>

<p>Sometimes, for some reason, during an installation, the tnslistener does not
get configured to listen for connections to the ora1 database.  Take a look
at /u01/app/oracle/product/10.1.0/network/admin/listener.ora and make sure
that there is an entry like the following:</p>

<blockquote><pre>
<font color="#298a52"><b>SID_LIST_LISTENER</b></font> =
  (<font color="#298a52"><b>SID_LIST</b></font> =
    (<font color="#298a52"><b>SID_DESC</b></font> =
      (<font color="#a52829"><b>SID_NAME</b></font> = PLSExtProc)
      (<font color="#a52829"><b>ORACLE_HOME</b></font> = /u01/app/<font color="#008a8c">oracle</font>/product/10.1.0)
      (<font color="#a52829"><b>PROGRAM</b></font> = extproc)
    )
    (<font color="#298a52"><b>SID_DESC</b></font> =
      (<font color="#a52829"><b>SID_NAME</b></font> = ora1)
      (<font color="#a52829"><b>ORACLE_HOME</b></font> = /u01/app/<font color="#008a8c">oracle</font>/product/10.1.0)
    )
  )
</pre></blockquote>

<p>The second SID_DESC section may be missing from your listener.ora file.  If
it is, update your listener.ora file, adding the necessary section.</p>

<p>During the installation, several ancillary processes were started.  You can
shut some of them down by executing the following commands (as oracle):</p>

<blockquote><b>
isqlplusctl stop<br>
emctl stop dbconsole<br>
emctl stop agent<br>
</b></blockquote>

<p>and the following command as root:</p>

<blockquote><b>
/etc/rc.d/init.d/init.cssd stop
</b></blockquote>

<p>At this point, only the database and tns listener should be running.</p>

<p>Unlike previous versions of oracle, Oracle 10g installs the init script
/etc/rc.d/init.d/init.cssd.  It is symlinked to the following locations:</p>

<blockquote><b>
/etc/rc.d/rc5.d/S96init.cssd<br>
/etc/rc.d/rc5.d/K96init.cssd<br>
/etc/rc.d/rc3.d/S96init.cssd<br>
/etc/rc.d/rc3.d/K96init.cssd<br>
</b></blockquote>

<p>If you don't want the cssd to start at boot time, you can disable it by
removing the following files:</p>

<blockquote><b>
/etc/rc.d/rc5.d/S96init.cssd<br>
/etc/rc.d/rc3.d/S96init.cssd<br>
</b></blockquote>

</body>

</html>
